-- GENERATED SPELL FOR [Colonel Zerran] --


function spell0_15385(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15385', 678, 1)
end

function spell1_15385(pUnit, Event) --@Enlarge,n/a--
pUnit:FullCastSpellOnTarget(25462,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15385', 609, 1)
end

function spell2_15385(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(24317,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15385', 20344, 1)
end

function Sorts_15385(pUnit, Event)
local choix_sorts_15385 = math.random(0, 2)
if choix_sorts_15385 == 0 then
pUnit:RegisterEvent('spell0_15385', 1, 1)
end
if choix_sorts_15385 == 1 then
pUnit:RegisterEvent('spell1_15385', 1, 1)
end
if choix_sorts_15385 == 2 then
pUnit:RegisterEvent('spell2_15385', 1, 1)
end
end

function mob15385_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15385', math.random(1500, 3000), 1)
end

function mob15385_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15385_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15385_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15385, 1, 'mob15385_Action')
RegisterUnitEvent(15385, 2, 'mob15385_Leave')
RegisterUnitEvent(15385, 3, 'mob15385_Kill')
RegisterUnitEvent(15385, 4, 'mob15385_Die')
